package com.batchLoadProps;

import com.swx.HelloWorld;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author lxh
 * @create 2019-04-04 14:33
 * @desc
 **/
public class App {


    /**
     * 批量加载配置文件
     * @param args
     */
    public static void main(String[] args) {

        ApplicationContext  ac = new
                ClassPathXmlApplicationContext("spring-all-module.xml");

        HelloWorld helloBean = (HelloWorld) ac.getBean("helloBean");
        String age = helloBean.getName();
        System.out.println(age);

    }
}
